﻿using UnityEngine;
//using UnityEditor;
using System;
using System.Xml;
using System.Xml.Serialization;
using System.Collections.Generic;

namespace TConfig {
	
	#region -------------场景对象设置------------------
	[XmlRoot("Records")]
	public class SceneObj {
		
		[XmlAttribute]
		public string name;
		[XmlAttribute]
		public string prefabPath;
		[XmlAttribute]
		public string parentName;
		[XmlAttribute]
		public float positionX;
		[XmlAttribute]
		public float positionY;
		[XmlAttribute]
		public float positionZ;
		[XmlAttribute]
		public float rotationX;
		[XmlAttribute]
		public float rotationY;
		[XmlAttribute]
		public float rotationZ;
		[XmlAttribute]
		public float scaleX;
		[XmlAttribute]
		public float scaleY;
		[XmlAttribute]
		public float scaleZ;
	}
	#endregion
	
	#region -------------精灵对象设置------------------
	[XmlRoot("Records")]
	public class SpriteObj {
		
		[XmlAttribute]
		public string name;
		[XmlAttribute]
		public string prefabPath;
		[XmlAttribute]
		public string parentName;
		[XmlAttribute]
		public float positionX;
		[XmlAttribute]
		public float positionY;
		[XmlAttribute]
		public float positionZ;
		[XmlAttribute]
		public float rotationX;
		[XmlAttribute]
		public float rotationY;
		[XmlAttribute]
		public float rotationZ;
		[XmlAttribute]
		public float scaleX;
		[XmlAttribute]
		public float scaleY;
		[XmlAttribute]
		public float scaleZ;
		[XmlAttribute]
		public int hp;
		[XmlAttribute]
		public int mp;
		[XmlAttribute]
		public int attack;
		[XmlAttribute]
		public int attackType;
		[XmlAttribute]
		public int defense;
		[XmlAttribute]
		public float attackFrequency;
		[XmlAttribute]
		public float attackDistance;
		[XmlAttribute]
		public float speedX;
		[XmlAttribute]
		public float speedY;
		[XmlAttribute]
		public int xPingPongLength;
		[XmlAttribute]
		public int yStopPos;
		[XmlAttribute]
		public int bulletId;
		[XmlAttribute]
		public int moveType;
	}
	#endregion
	
	
	#region ----------------子弹对象配置-----------------
	[XmlRoot("Records")]
	public class BulletObj
	{
		[XmlAttribute]
		public int id;
		[XmlAttribute]
		public float speed;
		[XmlAttribute]
		public int bulletType;
		[XmlAttribute]
		public int moveType;
		[XmlAttribute]
		public string filePath;
	}
	#endregion
	
	
	#region ----------------窗口对象配置-----------------
	[XmlRoot("Records")]
	public class WindowObj
	{
		[XmlAttribute]
		public string windowType;
		[XmlAttribute]
		public float localPositionX;
		[XmlAttribute]
		public float localPositionY;
		[XmlAttribute]
		public float localPositionZ;
	}
	#endregion
	[XmlRoot("FaskKeys")]
	public class FaskKey 
	{
		[XmlAttribute]
		public string sKey;
		[XmlAttribute]
		public string sFunc;
	}
}
